package homework02;

public class Animal {
    private String color;
    private int leg;

    public Animal(String color,int leg){
        this.color = color;
        this.leg = leg;
    }

    public void eat(){
        System.out.println("吃饭");
    }

}
